<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/xiaoxi.css">
<title>全部收藏</title>
</head>
<!--头部 -->
<%@include file="head.jsp"%>

<div class="fenlei">
	<div class="keep">
		<img src="imges/banner.png" />
	</div>
	<div class="keep_top">
		<div class="keep_top_l">
			<img src="imges/jiayuan_tou.png" />
		</div>
		<div class="keep_top_r">
			<div class="keep_top_r1">
				<span style="font-size: 20px">ID ${mbId}</span><br />
				<div style="margin-top: 10px;">
					等级：<span class="keep_vip">VIP1</span>&nbsp;&nbsp;|&nbsp;&nbsp;
					发帖：<span class="keep_or">${userInfo.releaseNum}</span>&nbsp;&nbsp;|&nbsp;&nbsp;
					精华：<span class="keep_or">0</span>&nbsp;&nbsp;|&nbsp;&nbsp;
					收藏：<span class="keep_or">${collectLists.size()}</span>
				</div>
			</div>
			<div class="keep_top_r2">注册时间：${userInfo.regTime}&nbsp;&nbsp;|&nbsp;&nbsp;最近登录：${lastLoginTime}</div>
		</div>
	</div>

	<div class="keep_con">
		<div class="keep_con_l">
			<div class="keep_l_top">
				<ul>
					<li style="border-left: none; border-top: 2px solid #c9ced7">
						<a href="<%=request.getContextPath() + "/collectController.do?allCollect&types=all"%>">全部收藏</a>
					</li>
					<li>
						<a href="<%=request.getContextPath() + "/collectController.do?allCollect&types=1"%>">帖子</a>
					</li>
					<li>
						<a href="<%=request.getContextPath() + "/collectController.do?allCollect&types=2"%>">版块</a>
					</li>
					<li>
						<a href="<%=request.getContextPath() + "/collectController.do?allCollect&types=3"%>">群组</a>
					</li>
					<li>
						<a href="<%=request.getContextPath() + "/collectController.do?allCollect&types=4"%>">日志</a>
					</li>
					<li>
						<a href="<%=request.getContextPath() + "/collectController.do?allCollect&types=5"%>">相册</a>
					</li>
				</ul>
			</div>

			<div class="keep_l_con">
				<table width="96%" border="0">
					<tr>
						<td rowspan="3" width="100%">
							<table width="96%" border="0">
								<tr>
									<c:forEach items="${collectLists}" var="collectList">
										<tr>
											<td colspan="3" width="100%" style="border-bottom: 1px solid #f3f3f3; padding-bottom: 5px;">
												<img src="imges/qunzu/1.png" style="vertical-align: middle" />
												<a href="${collectList.collect_url}">${collectList.bycollect_name}</a>
												&nbsp;&nbsp; ${collectList.collect_time}
											</td>
											<td width="10%" style="text-align: right">
												<input type="checkbox" />
											</td>
										</tr>
									</c:forEach>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>

			<c:if test="${collectLists.size()<1}">
				<div style="width: 400px; margin: auto; padding-bottom: 100px; margin-top: 10px;">
					<img src="imges/message/xiaoxi.png">
				</div>
			</c:if>

			<div class="keep_delete">
				<button>删除</button>
				<input type="checkbox" />
			</div>

			<!-- 》》》》》》》》》》分页《《《《《《《《《《《 -->
			<div id="pgt" class="cl">
				<div class="pgt">
					<div class="pg">
						<%
								int pageNo = 0, bfNo = 0;
								String pageNoStr = request.getParameter("page");
								String collectTypes = request.getParameter("types");
									if (StringUtil.isEmpty(pageNoStr) || "1".equals(pageNoStr)) {
										pageNo = 1;
										bfNo = 1;
									} else {
										pageNo = Integer.parseInt(pageNoStr);
										bfNo = pageNo - 1;
									}
									String annCount = request.getAttribute("pageCount").toString();
									int P_pageCount = Integer.parseInt(annCount);
							%>
						<span class="pgb"><a href="collectController.do?allCollect&types=<%=collectTypes%>&page=<%=bfNo%>">返回</a></span>
						<%
								int showPages = 10;//显示10页
									if (showPages >= P_pageCount) {
										for (int i = 0; i < P_pageCount; i++) {
							%>
						<a class="<%=pageNo == (i + 1) ? "current" : ""%>" href="collectController.do?allCollect&types=<%=collectTypes%>&page=<%=(i + 1)%>"><%=(i + 1)%></a>
						<%
								}
									} else {
										int pindex = 0;
										if (pageNo > (showPages / 2))
											pindex = pageNo - (showPages / 2);
										if ((pageNo > P_pageCount - (showPages / 2)) && (pageNo <= P_pageCount))
											pindex = P_pageCount - showPages;
										for (int i = pindex; i < showPages + pindex; i++) {
							%>
						<a class="<%=pageNo == (i + 1) ? "current" : ""%>" href="collectController.do?allCollect&types=<%=collectTypes%>&page=<%=(i + 1)%>"><%=(i + 1)%></a>
						<%
								}
							%>
						<a href="collectController.do?allCollect&types=<%=collectTypes%>&page=<%=P_pageCount%>" class="last">
							...
							<%=P_pageCount%></a>
						<%
								}
							%>
						<label>
							<input type="text" name="custompage" class="px" size="2" title="输入页码，按回车快速跳转" value="1">
							<span title="共 <%=P_pageCount%>页"> / <%=P_pageCount%>页
							</span>
						</label>
						<a href="collectController.do?allCollect&types=<%=collectTypes%>&page=<%=(pageNo + 1)%>" class="nxt">下一页</a>
					</div>
				</div>
			</div>

		</div>



		<div class="keep_con_r">
			<div class="keep_r_top">
				<a class="keep_ft">发帖</a>
				<a class="keep_qd">签到</a>
			</div>
			<div class="keep_r_con">
				<div class="keep_r_con1">最近访客</div>
				<ul style="margin-left: 20px; height: 310px;">
					<li>
						<p>
							<img src="imges/qunzu/tx3.png" />
						</p>
						7月31日
					</li>
					<li>
						<p>
							<img src="imges/qunzu/tx3.png" />
						</p>
						7月31日
					</li>
					<li>
						<p>
							<img src="imges/qunzu/tx3.png" />
						</p>
						7月31日
					</li>
					<li>
						<p>
							<img src="imges/qunzu/tx3.png" />
						</p>
						7月31日
					</li>
					<li>
						<p>
							<img src="imges/qunzu/tx3.png" />
						</p>
						7月31日
					</li>
					<li>
						<p>
							<img src="imges/qunzu/tx3.png" />
						</p>
						7月31日
					</li>
					<li>
						<p>
							<img src="imges/qunzu/tx3.png" />
						</p>
						7月31日
					</li>
				</ul>
				<div class="keep_r_con1">
					<a style="color: #d6d6d6"> < </a>
					<a style="color: #666"> > </a>
					<a style="color: #666">···</a>
				</div>
			</div>
		</div>
		<div style="clear: both"></div>
	</div>
	<div style="clear: both"></div>
</div>

<!--foot -->
<%@include file="foot.jsp"%>

</body>
</html>